package com.happe.foodeasy.manage.dto;

import com.happe.foodeasy.manage.commodity.entity.CommodityBaseEntity;

import java.util.ArrayList;
import java.util.List;

/**
 * 这个类用于保存特定商品类型与状态下的所有商品的基本信息。
 * Created by wubin on 2016-07-24.
 */
public class CommodityLocateDTO {
    private CommodityTypeDTO commodityTypeDTO = new CommodityTypeDTO();
    private CommodityStatusDTO commodityStatusDTO = new CommodityStatusDTO();
    private List<CommodityBaseEntity> commodityBaseDTOs = new ArrayList<>();

    public void setCommodityTypeDTOId(long commodityTypeDTOId) {
        commodityTypeDTO.setId(commodityTypeDTOId);
    }

    public void setCommodityStatusDTOId(long commodityStatusDTOId) {
        commodityStatusDTO.setId(commodityStatusDTOId);
    }

    public CommodityTypeDTO getCommodityTypeDTO() {
        return commodityTypeDTO;
    }

    public void setCommodityTypeDTO(CommodityTypeDTO commodityTypeDTO) {
        this.commodityTypeDTO = commodityTypeDTO;
    }

    public CommodityStatusDTO getCommodityStatusDTO() {
        return commodityStatusDTO;
    }

    public void setCommodityStatusDTO(CommodityStatusDTO commodityStatusDTO) {
        this.commodityStatusDTO = commodityStatusDTO;
    }

    public List<CommodityBaseEntity> getCommodityBaseDTOs() {
        return commodityBaseDTOs;
    }

    public void setCommodityBaseDTOs(List<CommodityBaseEntity> commodityBaseDTOs) {
        this.commodityBaseDTOs = commodityBaseDTOs;
    }
}
